#!/usr/bin/env bash

ip_addr=`netstat -antpl |  grep -i listen | grep 5813 | awk '{print $4}'`
curl -v -X POST -H "Content-Type:application/x-zc-object" -H "x-zc-major-domain-id:zc" http://${ip_addr}/zc-julink/v1/x-debug

# yum install -y graphviz
go tool pprof -http="0.0.0.0:18783" service.memprof


# Cgroup
systemd-cgls --unit kubepods.slice --no-pager

/sys/fs/cgroup/memory/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-podcf72f4ba_d96c_4789_a6c0_c1496683e694.slice/crio-da453acadfd779f89c219ee5c41640aea4a338e2d10ba6cc5a1e702acce17d5a.scope



crictl ps -a  |grep ac-julink | awk '{print $1}' | while read line; do systemd-cgls --unit kubepods.slice --no-pager |grep $line | cut -d '-' -f2;done